package com.laurentiuspilca.ssia.repositories;

import com.laurentiuspilca.ssia.model.Document;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

@Repository
public class DocumentRepository {



    public Document findDocument(String code) {
        HashMap<String, Document> documents = new HashMap<>();
        documents.put("abc123", new Document("natalie"));
        documents.put("qwe123", new Document("natalie"));
        documents.put("asd555", new Document("emma"));


        return documents.get(code);
    }
}
